
import request from "@/utils/request";

enum API {
    HOLIDAY_URL = "/itp/api/system/holiday",
} 
export default{
    addBatchHoliday:(data:any)=>request.post(`${API.HOLIDAY_URL}/batch`,data),//批量新增
    getAllList:(year:any)=>request.get(`${API.HOLIDAY_URL}?year=${year}`),//查询
    editBatchHoliday:(data:any)=>request.put(`${API.HOLIDAY_URL}/batch`,data),//批量修改
    delBatchHoliday:(year: number)=>request.delete(`${API.HOLIDAY_URL}?year=${year}`),//批量删除
    getGeneratorDate:(year:string)=>request.get(`${API.HOLIDAY_URL}/generator?year=${year}`)
}